package cn.sjx.graduate.service;

import cn.sjx.graduate.domain.Employee;
import cn.sjx.graduate.domain.LeaveList;
import cn.sjx.graduate.qo.QueryObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author bo-feifei
 * @since 2022-05-05
 */
public interface ILeaveService extends IService<LeaveList> {
    /**
     * 分页查询
     *
     * @param qo
     * @return
     */
    IPage<LeaveList> queryPage(QueryObject qo, Employee employee);

    /**
     * 判断审核是否通过 通过了就给员工当月休息增加时间
     *
     * @param leaveList
     */
    void checkLeaveApply(LeaveList leaveList);
}
